home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
bbs
/
maxut11.zip
/
FILLST00.MEX
< prev
next >
Wrap
Text File
|
1996-06-23
|
17KB
|
490 lines
//////////////////////////////////////////////////////////////////////////////
// File: arealist.mex
// Desc: Program to display a list of message or file areas. If the
// MSGAREA constant is defined, this will display a list of
// message areas. If FILEAREA is defined, this will display
// a list of file areas.
// Copyright 1990, 1995 by Lanius Corporation. All rights reserved.
// $Id: arealist.mex 1.6 1995/07/27 17:48:05 sjd Exp $
//
// free for non-commerical use
// Copyright 1995 1996 by Gerry Ellison. All rights reserved.
// File: changed to make fillst00.mex
// Desc. Makes file list and tic list.
// $Id: fillst00.mex 0.0 1995/12/24 24:00:00 gre Exp $
// fillst00_CON to show on console also.
//////////////////////////////////////////////////////////////////////////////
#include <max.mh>
#define FILEAREA
#ifdef FILEAREA
#define ATYPE "file"
#define AREAT _farea
#define ARVAR farea
#define AreaFindFirst fileareafindfirst
#define AreaFindNext fileareafindnext
#define AreaFindClose fileareafindclose
#define AreaSelect fileareaselect
#endif
#ifdef MSGAREA
#define ATYPE "msg"
#define AREAT _marea
#define ARVAR marea
#define AreaFindFirst msgareafindfirst
#define AreaFindNext msgareafindnext
#define AreaFindClose msgareafindclose
#define AreaSelect msgareaselect
#endif
int isourdivision(string: divstr, string: areaname)
{
int: i,l;
string: sub;
l:=strlen(divstr);
sub:=substr(areaname,1,l);
if (strupper(sub)<>strupper(divstr))
return False;
sub:=substr(areaname,l+2,strlen(areaname)-l-1);
if (stridx(sub,1,'.'))
return False;
return True;
}
int main(string: argv)
{
int: i, done, levels, first, divonly,
fd,cn;
string: aname,division,tmp,path_file;
string: B,CD,CF,CFN,D,DDS,DV,E,G,GN,H,I,IM,L,LB,LX,M,MX,O,R,RP,
SDN,SDS,GR,WM,LS,RA,RD,RH,RL,RS,S,UN,W,WN,WT,z,ZX,line;
char: nonstop,
len,ch;
// int filecopy(string: old, string: new);
struct AREAT: a;
first:= True;
divonly:= False;
GR := "\x16\x01\x07";
WM := "\x16\x01\x5F";
LS := WM+"░░░▒▒▒▓▓▓████";
RS := "████▓▓▓▒▒▒░░░"+GR;
E := LS+" New Files List etc. "+RS;
B := LS+" Maximus and other BBS Files "+RS;
CD:= LS+" CD-ROM Night Owl 12 "+RS;
CF:= LS+" FDN: CF - Crafting File Distr. Net"+RS;
CFN:= LS+" FDN: CFN - The Crafting File Net "+RS;
D := LS+" ADANet for the Handicapped Net "+RS;
G := LS+" GSDS - Genealogy Distribution Net "+RS;
GN:= LS+"FDN: GAME_NET - Games File Distrib "+RS;
H := LS+" National Hamfile Distribution Net "+RS;
I := LS+" IGA_Net<tm> File Areas. "+RS;
IM := LS+"FDN: IM InterMail & InterEcho Dist "+RS;
L := LS+" Programing Languages & Batch Aids "+RS;
LX:= LS+" FDN: LUX - THR's Linux File Dist. "+RS;
LB:= LS+"FDN: BFDS - Batch File Distribution"+RS;
M := LS+" Modem and Comm. Areas "+RS;
MX:= LS+" FDN: MAX - Maximus FDN "+RS;
DV:= LS+" FDN: DVN - DVNet "+RS;
O := LS+" OS2 File Areas "+RS;
R := LS+" Rest of File Areas not listed "+RS;
SDN:= LS+" FDN: SDN International(sm) "+RS;
SDS:= LS+"FDN: SDS - Software Distrib. System"+RS;
RA:= LS+" FDN: Author-Direct "+RS;
DDS:= LS+" FDN: DDS - DoorWare Distribution "+RS;
RH:= LS+" FDN: HOME - Home FDN "+RS;
RL:= LS+" LOCAL Areas "+RS;
RP:= LS+" FDN: RIP - Rip File Network "+RS;
UN:= LS+" FDN: UTILNET - UtilNet "+RS;
ZX:= LS+" FDN: ZYX - ZyxelNet "+RS;
W := LS+" Windows related files "+RS;
WN:= LS+" FDN: WIN - WinNet "+RS;
WT:= LS+" FDN: NT - Windows NT Net "+RS;
S := LS+" SysOp Only "+RS;
print(COL_YELLOW+"\nConstructing File List and Tic-S.cfg with FileSpec "+
"and Announce for Seal."+GR);
if (argv <> "CON") {
ch := input_list("yn", 0, "", "",
"\nDo you want to print to con");
if (ch = 89)
argv := "CON";
}
fd := open("C:\\Max\\Miscx\\F_Alst03.bbs", IOPEN_CREATE | IOPEN_WRITE);
close(fd);
fd := open("C:\\Bbs\\Squish\\Tic-S.bse", IOPEN_CREATE | IOPEN_WRITE);
writeln(fd,"Net 108");
writeln(fd,"Node 107");
writeln(fd,"AKA 440:130/107");
writeln(fd,"SET TZ=EST5EDT");
writeln(fd,"IN C:\\Binkley\\Inbound\\");
writeln(fd,"ZONE 1 E:\\Msg\\Outbound\\");
// :: HOLD C:\Bbs\Tick\Hold\
// :: QDIR C:\Bbs\Tick\Qdir\
writeln(fd,"MAIL E:\\Msg\\Netmail\\");
// ; [ListFmt %3:-13 %1] (Alters the default format of the FILES.BBS)
// ; [ListName Files.Bbs] (Alters default name / location ofFILES.BBS)
// ;[AKA 1:1/313] (Adds your AKA addresses to the [AKA 5:678/90]
// ;STOPDUP C:\Bbs\Tick\Hold\
writeln(fd,"STOPDUP C:\\Binkley\\Inbound\\");
writeln(fd,"QUIET");
// ; The brackets indicate optional items, and should NOT be entered in the
// ; real configuration file.
// ; [TEMP c:\ramdisk] (Optional directory for temporary files)
// ; [FIDO] (Send files as MSG attaches instead of FLO attaches)
// ; [MAIL c:\netmail] (Location of Netmail - Required if FIDO specified)
// FLEA
// (If present, tells the program to also process inbound FLE files)
// [LOGPATH] (If present, log the PATH lines to the logfile)
// [LOGSEEN] (If present, log SEENBY lines to the logfile)
// [CRC] (Enable CRC testing)
// [LogCRC] (Place copy of CRC in the log)
// [Crc2Dup] (Place copy of CRC in the DUP file, Necessary for DupByCRC)
// [DupByCRC] (Dupe file by CRC. See [LOCAL DupByCRC] below for more information.)
writeln(fd,"NoWait");
// (Prevent *HATCH's from hanging a batch file on errors or ommissions)
// [Local] Specifies the next argument is to be processed for only this area)
// [DupByCRC] (Dupe file by CRC. See [LOCAL DupByCRC] below for more information.)
// [MailerKills] (Defines how TICK will generate FLO attach files, with
// respect to the deletion of the TIC files. See below for more information.)
// [RAID] (Allows creation of .RAD file for certain utilities such as RAID to
// generate announcments of locally hatched files.)
writeln(fd,"REPLACE");
// (Allows the replacing of files, optionally on an area-by-area basis. See below for more infomation.)
// [FDLog] (Forces TICK to log all activities in FrontDoors logfile format.)
// [LOCAL BigDesc] (Allows large file descriptions See below for more information.)
// [ForceINTL] (An INTL Kludge will be inserted for a MSG attach even if it's the same zone)
writeln(fd,"");
writeln(fd," ------------------------------- AREAS -----------------------------------");
close(fd);
fd := open("C:\\Bbs\\Squish\\Tic-s.spc", IOPEN_CREATE | IOPEN_WRITE);
close(fd);
fd := open("C:\\Bbs\\Squish\\Tic-s.ann", IOPEN_CREATE | IOPEN_WRITE);
close(fd);
// Set initial division name
i:=strridx(ARVAR.name,0,'.');
if (i>0)
division:=substr(ARVAR.name,1,i-1);
else
division:="";
do
{
int: len;
len := input_str(aname, INPUT_WORD|INPUT_NOCTRLC|INPUT_DEFAULT,
0, 64, COL_WHITE "\nSelect " ATYPE " area: ");
print('\n');
if (len=0)
{
if (first<>True)
return 0;
aname:="?";
}
if (aname="..")
{
i:=stridx(division,1,'.');
if (i>0)
division:=substr(division,1,i-1);
else
division:="";
aname:="?";
}
if (aname[1]='/') // Top level list requested
{
aname:=substr(aname,2,strlen(aname)-1);
// List all top level areas
division:="";
if (aname[1]=' ')
aname:="?";
}
first:=False;
divonly:=False;
if (aname[1]='?') // Area list request